#include "PerspectiveParser.h"

PerspectiveParser::PerspectiveParser(void)
{
}

PerspectiveParser::~PerspectiveParser(void)
{
}

PerspectiveParser::PerspectiveParser(string id, float near, float far, float angle, float from_x, float from_y, float from_z, float to_x, float to_y, float to_z){
	this->id = id;
	this->near = near;
	this->far = far;
	this->angle = angle;
	this->from_x = from_x;
	this->from_y = from_y;
	this->from_z = from_z;
	this->to_x = to_x;
	this->to_y = to_y;
	this->to_z = to_z;
}

void PerspectiveParser::applyView(){
	gluPerspective(angle,xy_aspect,near,far);
	gluLookAt(from_x,from_y,from_z,to_x,to_y,to_z,0,1,0);
}